// StringGenerator.h: interface for the StringGenerator class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STRINGGENERATOR_H__A570CAEA_C0D5_4472_A2CE_7738501D1327__INCLUDED_)
#define AFX_STRINGGENERATOR_H__A570CAEA_C0D5_4472_A2CE_7738501D1327__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ProjectDBObjectGenerator.h"
#include "PartString.h"

class AFX_EXT_CLASS StringGenerator : public ProjectDBObjectGenerator 
{
private:
	StringGenerator();

public:
	virtual ~StringGenerator();

public:
	static StringGenerator& Instance();

public:
	PartString* Generator(DAWrapper::RecordsetPtrWrap& rs);

private:
	BOOL GetStringPartSet(PartString* pString, const CString& strVolumeID, 
		const CString& strSHID, DAWrapper::RecordsetPtrWrap& rs);
	BOOL GetStringPart(PartString* pString, const CString& strVolumeID, const CString& strSHID);
};

#endif // !defined(AFX_STRINGGENERATOR_H__A570CAEA_C0D5_4472_A2CE_7738501D1327__INCLUDED_)
